package com.sleep.flowabledemo.listener;

import cn.hutool.cron.TaskExecutor;
import lombok.extern.slf4j.Slf4j;
import org.flowable.bpmn.model.FlowableListener;
import org.flowable.common.engine.api.delegate.event.FlowableEvent;
import org.flowable.common.engine.api.delegate.event.FlowableEventListener;
import org.flowable.engine.delegate.DelegateExecution;
import org.flowable.engine.delegate.ExecutionListener;
import org.flowable.engine.delegate.TaskListener;
import org.flowable.task.service.delegate.DelegateTask;
import org.springframework.stereotype.Component;

import java.io.Serial;
import java.util.EventListener;

/**
 * @ClassName MyMessageListener
 * @Description TODO
 * @Author 郭敖
 * @Date 2024年04月26日 10:53
 * @Version 1.0
 */
@Component("messageListener")
@Slf4j
public class MyMessageListener implements TaskListener {

    @Serial
    private static final long serialVersionUID = -882464368001883686L;

    @Override
    public void notify(DelegateTask delegateTask) {
        log.warn("MyMessageListener:{}",delegateTask);
    }
}
